package com.dshore.messagecenter.model.system;

import java.io.Serializable;
import java.util.List;

/**
 * 页面左侧边栏栏目信息实体类
 * @author 潘毅
 * @data 2018/7/19
 * @version 1.0.0
 */
public class McColumnInfo implements Serializable {

	private static final long serialVersionUID = -3348304467452840002L;
	private Integer id;
	private String menuName;
	private String icon;
	private Integer type;
	private Integer pid;
	private String programUrl;
	private Integer status;
	private Integer orderNum;
	private String perms;
	private String click;
	
	private List<McColumnInfo> menuList;
	
	public McColumnInfo() {
		super();
	}

	public McColumnInfo(String menuName, String icon, Integer type, Integer pid, String programUrl, Integer status,
			Integer orderNum, String perms, String click, List<McColumnInfo> menuList) {
		super();
		this.menuName = menuName;
		this.icon = icon;
		this.type = type;
		this.pid = pid;
		this.programUrl = programUrl;
		this.status = status;
		this.orderNum = orderNum;
		this.perms = perms;
		this.click = click;
		this.menuList = menuList;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getProgramUrl() {
		return programUrl;
	}

	public void setProgramUrl(String programUrl) {
		this.programUrl = programUrl;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getPerms() {
		return perms;
	}

	public void setPerms(String perms) {
		this.perms = perms;
	}

	public String getClick() {
		return click;
	}

	public void setClick(String click) {
		this.click = click;
	}

	public List<McColumnInfo> getMenuList() {
		return menuList;
	}

	public void setMenuList(List<McColumnInfo> menuList) {
		this.menuList = menuList;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((click == null) ? 0 : click.hashCode());
		result = prime * result + ((icon == null) ? 0 : icon.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((menuList == null) ? 0 : menuList.hashCode());
		result = prime * result + ((menuName == null) ? 0 : menuName.hashCode());
		result = prime * result + ((orderNum == null) ? 0 : orderNum.hashCode());
		result = prime * result + ((perms == null) ? 0 : perms.hashCode());
		result = prime * result + ((pid == null) ? 0 : pid.hashCode());
		result = prime * result + ((programUrl == null) ? 0 : programUrl.hashCode());
		result = prime * result + ((status == null) ? 0 : status.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		McColumnInfo other = (McColumnInfo) obj;
		if (click == null) {
			if (other.click != null)
				return false;
		} else if (!click.equals(other.click))
			return false;
		if (icon == null) {
			if (other.icon != null)
				return false;
		} else if (!icon.equals(other.icon))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (menuList == null) {
			if (other.menuList != null)
				return false;
		} else if (!menuList.equals(other.menuList))
			return false;
		if (menuName == null) {
			if (other.menuName != null)
				return false;
		} else if (!menuName.equals(other.menuName))
			return false;
		if (orderNum == null) {
			if (other.orderNum != null)
				return false;
		} else if (!orderNum.equals(other.orderNum))
			return false;
		if (perms == null) {
			if (other.perms != null)
				return false;
		} else if (!perms.equals(other.perms))
			return false;
		if (pid == null) {
			if (other.pid != null)
				return false;
		} else if (!pid.equals(other.pid))
			return false;
		if (programUrl == null) {
			if (other.programUrl != null)
				return false;
		} else if (!programUrl.equals(other.programUrl))
			return false;
		if (status == null) {
			if (other.status != null)
				return false;
		} else if (!status.equals(other.status))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "McColumnInfo [id=" + id + ", menuName=" + menuName + ", icon=" + icon + ", type=" + type + ", pid="
				+ pid + ", programUrl=" + programUrl + ", status=" + status + ", orderNum=" + orderNum + ", perms="
				+ perms + ", click=" + click + ", menuList=" + menuList + "]";
	}

	
	
	
}
